// import React, { useState } from 'react';
// import { ScrollView, View } from 'react-native';
// import DeviceCard from '@/components/features/device/DeviceCard';
// import SearchBar from '@/components/features/device/SearchBar';
// import ButtonDemo from '@/components/features/device/ButtonDemo';
// import UserCard from '@/components/features/device/UserCard';
// import { CurrentSceneCard } from '@/components/features/device/CurrentSceneCard';
// import DevicePicker from '@/components/features/device/DevicePicker';
// import Scene from '@/components/features/device/Scene';
// import AddDeviceCard from '@/components/features/device/AddDeviceCard';
// import { SceneCard } from '@/components/features/device/SceneCard';
// import { HomePageCard } from '@/components/features/device/HomePageCard';
// import ProfileEditor from '@/components/features/device/ProfileEditor';
// import FamilyCard from '@/components/features/device/FamilyCard';
// import AuthTest from '@/components/api/AuthTest';
// import FamilyTest from '@/components/api/FamilyTest';
// import DeviceTest from '@/components/api/DeviceTest';
// import SceneTest from '@/components/api/SceneTest';
// import RecommendationTest from '@/components/api/RecommendationTest';
// import { router } from 'expo-router';
// import FamilyMemberCard from '@/components/features/device/FamilyMemberCard';
// import AddDevicetoSceneCard from '@/components/features/device/AddDevicetoSceneCard';
// import TimePicker from '@/components/common/TimePicker';

// export default function BlankScreen() {
//     const [profile, setProfile] = useState<{ phone?: string; email?: string }>
//     ({ 
//         phone: '13800000000', 
//         email: 'test@example.com' 
//     });

//     const handleSave = () => {
//         alert(`手机号: ${profile.phone}\n邮箱: ${profile.email}`);
//     };

//     // 添加时间选择器的状态
//     const [selectedTime, setSelectedTime] = useState('07:00');

//     return (
//         <ScrollView
//             style={{ flex: 1, backgroundColor: '#fff' }}
//         >
//             <View style={{ alignItems: 'center', paddingBottom: 200 }}>
//                 <CurrentSceneCard
//                     image={require('../../assets/images/Scene.jpg')}
//                     title="当前使用的场景"
//                     desc="开启时间"
//                     onEditPress={() => alert('点击修改设备名称')}
//                 />
//                 <FamilyCard
//                     familyName="家庭成员"
//                     memberCount={4}
//                     onAddPress={() => alert('添加家庭成员')}
//                 />
//                 <ProfileEditor
//                     fields={['phone', 'email']}
//                     initialPhone={profile.phone}
//                     initialEmail={profile.email}
//                     onChange={data => setProfile(prev => ({ ...prev, ...data }))}
//                 />
//                 <ButtonDemo
//                     onPress={handleSave}
//                     text="保存"
//                 />
//                 <DeviceCard
//                     image={require('../../assets/images/VaccumCleaner.jpg')}
//                     title="吸尘器"
//                     desc="description"
//                     onPress={() => alert('点击了吸尘器')}
//                 />
//                 <AddDeviceCard 
//                     onDeviceSelect={(value) => {
//                         alert(`在展示页选择了新设备，value 是: ${value}`);
//                     }} 
//                 />
//                 <SearchBar />
//                 <UserCard />
//                 <UserCard
//                     avatar={require('../../assets/images/VaccumCleaner.jpg')}
//                     username="ads"
//                 />
//                 <DevicePicker />
//                 {/* <Scene /> */}
//                 <SceneCard
//                     image={require('../../assets/images/Scene.jpg')}
//                     title="场景名称"
//                     onAddPress={() => alert('使用场景')}
//                 />
//                 <HomePageCard
//                     image={require('../../assets/images/Scene.jpg')}
//                     title="首页卡片"
//                     desc="卡片描述sda"
//                     // onPress={() => alert('卡片点击')}
//                 />

//                 <AuthTest />
//                 <FamilyTest />
//                 <DeviceTest />
//                 <SceneTest />
//                 <RecommendationTest />
//                 <FamilyMemberCard
//                     username="ads"
//                     owner={true}
//                     me={true}
//                     addCard={true}
//                 />
//                 <Scene
//                     sceneName="示例场景"
//                     onIncrease={() => alert('增加')}
//                     onDecrease={() => alert('减少')}
//                     onDelete={() => alert('删除')}
//                     onEdit={() => alert('编辑')}
//                 />
                


//                 <View style={{ width: '90%', marginVertical: 10 }}>
//                     <TimePicker 
//                         value={selectedTime}
//                         onChange={setSelectedTime}
//                         placeholder="选择触发时间"
//                     />
//                 </View>
//             </View>
//         </ScrollView>
//     );
// }